<?php
/**
 * Dingo\Api Routers
 */

$api = app('Dingo\Api\Routing\Router');

$api->version('v1_0', [
    'namespace' => 'App\Api\Controllers\v1_0',
    'middleware' => 'api.throttle',
    'limit' => 100,
    'expires' => 1
], function ($api) {

        $api->group(['middleware' => ['jwt.auth']], function ($api) {
            $api->get('user', 'UserController@getUserInfo');
        });

        $api->get('test', 'TestController@test');
        $api->post('login', 'AuthController@login');
});